# Contributor: prspkt <prspkt@protonmail.com>
# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=foliate
pkgver=2.4.2
pkgrel=0
pkgdesc="Simple and modern eBook viewer"
url="https://johnfactotum.github.io/foliate"
arch="noarch !s390x !mips !mips64" # missing gjs
license="GPL-3.0-or-later"
depends="gjs webkit2gtk"
makedepends="gettext-dev glib-dev iso-codes-dev meson"
subpackages="$pkgname-lang"
source="https://github.com/johnfactotum/foliate/archive/$pkgver/foliate-$pkgver.tar.gz"

build() {
	abuild-meson . output
	ninja -C output
}

package() {
	DESTDIR="$pkgdir" ninja -C output install
	ln -s com.github.johnfactotum.Foliate "$pkgdir"/usr/bin/foliate
}

sha512sums="6dda76c9bd3f9f3273bafdd65463adfcab84d9c81ca89c2fd1cda4c5d7618d84610e11c75936c5df2bb118caa3f3e1e77ded506da670263e5af5b0ad92a97a07  foliate-2.4.2.tar.gz"
